package io.jft.doll.room.repository

import io.jft.doll.api.BannerApi
import io.jft.doll.api.apiProvider
import com.g.base.room.repository.BaseRepository
import com.g.base.room.repository.NetworkBoundResult

/**
 * Created by G on 2017/11/29 0029.
 */
class AdRepository : BaseRepository() {

    fun getMainBanner() = NetworkBoundResult({
        apiProvider.create(BannerApi::class.java).getMainBanner()
    })
}